package cn.edu.buu.hospital.service;

import cn.edu.buu.hospital.entity.User;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface UserService {
    void add(User user);
    void removeById(Long userid);
    void modify(User user);
    User findById(Long userid);
    List<User> findAll();
    PageInfo<User> find(int pageNum, int pageSize, User condition);

    User findAdmin(String username, String userpwd, Integer type);

    User findByUserName(String doctorName);
    
    // 根据手机号查找用户
    User findByPhone(String phone);
    
    // 获取医生总数（type=2）
    long countDoctors();
}